package cn.etynit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author etyn
 * @since 2022-12-08
 */
@TableName("t_expense_electricity")
public class ExpenseElectricity extends Model<ExpenseElectricity> {

    private static final long serialVersionUID = 1L;

    /**
     * 是否汛期 1：是  -1：不是
     */
    public static final Integer IS_FLOOD_SEASON = 1;
    public static final Integer NOT_IS_FLOOD_SEASON = -1;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 当前电价
     */
    @TableField("unit_price")
    private BigDecimal unitPrice;
    /**
     * 使用量
     */
    private Integer dosage;
    /**
     * 是否汛期 1：是，-1：不是
     */
    @TableField("flood_season")
    private Integer floodSeason;
    /**
     * 电费返还
     */
    private BigDecimal reverse;
    /**
     * 本月产生费用
     */
    private BigDecimal accumulative;
    /**
     * 剩余金额
     */
    private BigDecimal residue;
    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public Integer getDosage() {
        return dosage;
    }

    public void setDosage(Integer dosage) {
        this.dosage = dosage;
    }

    public Integer getFloodSeason() {
        return floodSeason;
    }

    public void setFloodSeason(Integer floodSeason) {
        this.floodSeason = floodSeason;
    }

    public BigDecimal getReverse() {
        return reverse;
    }

    public void setReverse(BigDecimal reverse) {
        this.reverse = reverse;
    }

    public BigDecimal getAccumulative() {
        return accumulative;
    }

    public void setAccumulative(BigDecimal accumulative) {
        this.accumulative = accumulative;
    }

    public BigDecimal getResidue() {
        return residue;
    }

    public void setResidue(BigDecimal residue) {
        this.residue = residue;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ExpenseElectricity{" +
        ", id=" + id +
        ", unitPrice=" + unitPrice +
        ", dosage=" + dosage +
        ", floodSeason=" + floodSeason +
        ", reverse=" + reverse +
        ", accumulative=" + accumulative +
        ", residue=" + residue +
        ", userId=" + userId +
        "}";
    }
}
